import request from '@/utils/request'

/**
 * 获取章节和小节
 * @param id s
 */
export function getChapterAndVideo(id) {
  return request({
    url: `/service-edu/DongBing/edu-Chapter/getChapterAndVideo/${id}`,
    method: 'get'
  })
}

export function deleteChapter(id) {
  return request({
    url: `/service-edu/DongBing/edu-Chapter/delete/${id}`,
    method: 'get'
  })
}

export function updateChapter(course) {
  return request({
    url: `/service-edu/DongBing/edu-Chapter/update`,
    method: 'post',
    data: course
  })
}

export function insertChapter(course) {
  return request({
    url: `/service-edu/DongBing/edu-Chapter/insert`,
    method: 'post',
    data: course
  })
}
export function deleteVod(id) {
  return request({
    url: '/service-vod/DongBing/vod/deleteVod/'+id,
    method: 'get'
  })
}

